import request from "@/utils/request";

// 查询活动列表
export function activityList() {
  return request({
    url: "/bulletinBoard/getAcList",
    method: "post",
  });
}

// 查询乡音活动数据
export function verlarActivities(id) {
  return request({
    url: "/bulletinBoard/getAcMsg?id=" + id,
    method: "post",
  });
}

// 查询报名人员
export function applicant(id) {
  return request({
    url: "/bulletinBoard/getEnterMsg?id=" + id,
    method: "post",
  });
}

// 查询报名数据
export function enrollmentData(id) {
  return request({
    url: "/bulletinBoard/getSignUpNum?id=" + id,
    method: "post",
  });
}

// 查询券码数据
export function couponcodeData(id) {
  return request({
    url: "/bulletinBoard/getCodeNum?id=" + id,
    method: "post",
  });
}

// 查询活动数据
export function activityData(id) {
  return request({
    url: "/bulletinBoard/getActivityNum?id=" + id,
    method: "post",
  });
}

// 查询管理数据
export function manageData(id) {
  return request({
    url: "/bulletinBoard/getManageNum?id=" + id,
    method: "post",
  });
}

// 查询用户动态
export function userDynamics() {
  return request({
    url: "/bulletinBoard/getDynamics",
    method: "post",
  });
}

// 查询配置信息
export function configureInfo(query) {
  return request({
    url: "/bulletinBoard/getConfigureDynamic?id="+query.id+"&state="+query.state,
    method: "post",
  });
}